import { Material } from './Material'
// 图片流动纹理
export class GroundMaterial extends Material {
    readonly type: string
    Width: number
    Long: number
    ImgUrl: String
    constructor(ImgUrl: String, Width: number = 1, Long: number = 1) {
        super()
        this.type = 'GroundMaterial'
        this.Width = Width
        this.Long = Long
        this.ImgUrl = ImgUrl
    }
    // 设置图片尺寸
    setWidth(Width: number) {
        this.Width = Width
    }
    // 设置图片
    setUrl(ImgUrl: String) {
        this.ImgUrl = ImgUrl
    }
    // 设置图片流动速度（x方向，y方向）
    setLong(Long: number) {
        this.Long = Long
    }
}